﻿@{
    ViewBag.Title = "Common Command";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
        <ol class="breadcrumb">
    <li><a href="/Home.html">Home</a></li>
    <li><a href="/WebApp/WebApi"> Sanelib WebApp</a></li>
    <li class="active">Sms Config</li>
</ol>
    
            <div id="introduction">
                <h1 class="text-left">API Controller</h1>
                <h3>Sms Configuration</h3>
            </div>
            <div>
                <p>Interface : <a href="/WebApp/SmartApi" class="btn-link">SmartAPIController</a></p>
                <article>
                    <h4>Constructor</h4>
                    <table class=" table-condensed table-striped">
                        <tr>
                            <th><strong>Parameters</strong></th>
                        </tr>
                        <tr>
                            <td class="table-bordered">IUserSession,</td>
                            <td class="table-bordered">IMapingEngine,</td>
                        </tr>
                    </table>
                    <br />
                    <b>Get() : </b><p>This method of Sms Configuration class will map the network related setting to the existing configuration.</p>
                    <pre><code>
public HttpResponseMessage Get()
{
     var smsConfig = ConfigProvider.GetSmsConfig();
     var response = Mapper.Map&lt;smsconfig, smsconfigresponse>(smsConfig);
     return Content(response);
}
</code></pre>
                    Sms Configuration form contains ServiceUrl and Sender Name.
                    These setting are mappe with the configuration file namespace : "Sanelib.Common.SystemSetting".
                    The <b>GetCommandValue</b> and <b>GetApiAdress</b>, Methods are returned with toString and ServiceUrl, SenderName, and return ""/CoreConfiguration/Sms" consicutively.
                </article>
            </div>
      